package cn.kgc.service.Impl;

import cn.kgc.mapper.DataDictionaryMapper;
import cn.kgc.pojo.DataDictionary;
import cn.kgc.service.DataDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("dataDictionaryService")
public class DataDictionaryServiceImpl implements DataDictionaryService {

    @Autowired
    private DataDictionaryMapper dataDictionaryMapper;

    @Override
    public List<DataDictionary> showDataDictList(String typeCode) {
        DataDictionary dictionary = new DataDictionary();
        dictionary.setTypeCode(typeCode);
        return dataDictionaryMapper.select(dictionary);
    }
}
